/* meet-team-bento.css */
/* --- Background Image for the Team Section --- */
.bento-box-bg {
    background-image: url('../../img/carousel\ bg6.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 3rem 0;
    border-radius: 20px;
}

/* --- Bento Box Grid Layout --- */
.bento-box-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 1rem;
}

/* --- Bento Box Pieces (Cards) --- */
.bento-piece {
/* Glassmorphism styles */
     background: rgba(255, 255, 255, 0.2); /* Semi-transparent white background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Lighter shadow for a floating feel */
    
    /* Existing styles (kept for functionality) */
    border-radius: 1.5rem; 
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-piece:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.team-member-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #f0f4f8;
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f4f8;
    margin-bottom: 0.25rem;
}

.team-member-role {
    font-size: 1rem;
    color: #f0f4f8;
    font-style: italic;
}

/* --- Fade-in Animation on Scroll --- */
/* This class hides the elements initially */
.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* This class is added by JavaScript to trigger the animation */
.bento-fade-in {
    animation: bentoFadeInAnimation 1s forwards;
    animation-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
}

@keyframes bentoFadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
